package com.example.arithmeticleetcode.learnArithmetic2.recursion;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-12-04 13:50
 **/
public class Demo01 {

    public static void main(String[] args) {
        log(4);
    }

    public static void log(int n) {
        if (n < 1) return;
        int v = 10 + n;
        System.out.println(v);

        log(n -1);

        int v1 = 10 + n;
        System.out.println(v);

    }
}
